package com.yyw.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yyw.common.utils.PageUtils;
import com.yyw.gulimall.ware.entity.PurchaseEntity;
import com.yyw.gulimall.ware.vo.PurchaseDoneVo;
import com.yyw.gulimall.ware.vo.PurchaseMergeVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author yiyw
 * @date 2020-10-24 12:17:23
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询未领取的采购单
     *
     * @return
     */
    PageUtils getUnreceiveList(Map<String, Object> params);

    /**
     * 采购单合并
     *
     * @param mergeVo
     */
    void merge(PurchaseMergeVo mergeVo);

    /**
     * 修改
     *
     * @param purchase
     */
    void update(PurchaseEntity purchase);

    /**
     * 领取采购单
     *
     * @param ids
     */
    void received(List<Long> ids);

    /**
     * 完成采购
     *
     * @param purchaseDone
     */
    void done(PurchaseDoneVo purchaseDone);
}

